<style type="text/css">
    .left-panel {
        float: left;
        width: 100%;
    }

    .right-panel {
        float: right;
        width: 20%;
        padding-left: 40px;
    }
</style>

<script type="text/javascript" src="<?php echo Yii::app()->baseUrl ?>/scripts/nicedit/nicEdit.js"></script>
<script type="text/javascript">
    bkLib.onDomLoaded(function() {
        new nicEditor({
            //buttonList : ['bold','italic','underline','upload'],
            iconsPath:'<?php echo Yii::app()->baseUrl; ?>/scripts/nicedit/nicEditorIcons.gif',
            //uploadURI : '<?php echo Yii::app()->baseUrl; ?>/scripts/nicedit/nicUpload.php',
        }).panelInstance('store_intro');
    });

    bkLib.onDomLoaded(function() {
        new nicEditor({
            //buttonList : ['bold','italic','underline','upload'],
            iconsPath:'<?php echo Yii::app()->baseUrl; ?>/scripts/nicedit/nicEditorIcons.gif',
            //uploadURI : '<?php echo Yii::app()->baseUrl; ?>/scripts/nicedit/nicUpload.php',
        }).panelInstance('bank_info');
    });
</script>



<form name="create_form" id="create_form" method="POST" action="?r=storeconfig/index" enctype="multipart/form-data">
    <div class="left-panel">
        <h3>Thông tin cơ bản</h3><hr />
        <table border="0">
            <tr>
                <td><label for="normal">Tên website</label></td>
                <!--/tr>
                <tr-->
                <td><input name="store_name" id="name" value="<?php echo $data['store_name'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Địa chỉ</label></td>
                <!--/tr>
                <tr-->
                <td><input name="address"  value="<?php echo $data['address'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>
            
            <tr>
                <td><label for="normal">Email<br /> (Thêm nhiều email tách nhau bởi dấu ',')</label></td>
            <!--/tr>
            <tr-->
                <td><input name="email"  value="<?php echo $data['email'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Số điện thoại<br /> (Thêm nhiều số tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="phones"  value="<?php echo $data['phones'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Hotlines<br /> (Thêm nhiều số tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="hotlines"  value="<?php echo $data['hotlines'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Skype<br /> (Thêm nhiều tài khoản tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="skype"  value="<?php echo $data['skype'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Yahoo <br /> (Thêm nhiều tài khoản tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="yahoo"  value="<?php echo $data['yahoo'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Facebook <br />(Thêm nhiều link tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="facebook"  value="<?php echo $data['facebook'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Google Plus <br />(Thêm nhiều link tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="googleplus"  value="<?php echo $data['googleplus'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Twitter <br />(Thêm nhiều link tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="twitter"  value="<?php echo $data['twitter'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>

            <tr>
                <td><label for="normal">Website khác <br />(Thêm nhiều link tách nhau bởi dấu ',')</label></td>
                <!--/tr>
                <tr-->
                <td><input name="other_sites"  value="<?php echo $data['twitter'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>



        </table>
        <br />
        <label for="normal">Google Map Link</label>
        <textarea  id="googlemap" name="googlemap" rows="4" style="width: 98%"><?php echo $data['googlemap'];?></textarea>

        <br />

        <label for="normal">Giới thiệu ngắn</label>
        <textarea  id="store_intro" name="store_intro" rows="4" style="width: 98%"><?php echo $data['store_intro'];?></textarea>

        <br />

        <input type="hidden" id="icon"/>
        <input type="hidden" id="screenshot"/>
        <input type="hidden" id="images"/>
        <table border="0">
            <tr>
                <td>
                    <label for="normal">Ảnh địa chỉ</label>
                    <input name="images" id="thumb" type="file"  size="20" style="opacity: 0;">
                    <input type ="hidden" name="image_map" id="thumb_url"/>
                </td>
                <td>
                    <label for="normal">Upload Profile</label>
                    <input id="profile" name="profile" type="file" size="20" style="opacity: 0;">
                </td>
            </tr>
            <tr>
                <td>
                    <div><img id="thumb_content" src="" style="width:200px;height:200px;margin-top:15px"></div>
                    <div id="thumb_status"></div>
                </td>
                <td>
                    <div id="source_file_url">
                    <input style="display:none;" type="text" name="profile_link" value="<?php echo $data['profile_link'];?>" /><label>Profile link: </label><label><?php echo $data['profile_link'];?></label>
                    </div>
                    <div id="upfile_status"></div>

                </td>
            </tr>
        </table>


        <span style="clear:left"></span>

        <br /><br />



    </div>


    <span style="clear: both"></span>

    <center>
        <button class="btn" id="create" href="#"><span class="icon16 icomoon-icon-cog"></span>Save</button>

    </center>
</form>